package vue;

import java.util.Date;

import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JLabel;
import javax.swing.JButton;

import controleur.BilanController;

public class BilanDeLaJrnee extends JPanel {
	private JTable table;
	private JButton btnRetour;

	/**
	 * Create the panel.
	 */
	public BilanDeLaJrnee() {
		setLayout(null);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"N\u00B0 Commande", "Date", "Heure", "Commande", "Montant"
			}
		) {
			Class[] columnTypes = new Class[] {
				Integer.class, Date.class, Date.class, String.class, String.class
			};
			public Class getColumnClass(int columnIndex) {
				return columnTypes[columnIndex];
			}
		});
		table.getColumnModel().getColumn(0).setPreferredWidth(81);
		table.setBounds(10, 11, 234, 211);
		add(table);
		
		JLabel lblTotal = new JLabel("TOTAL : ");
		lblTotal.setBounds(71, 257, 46, 14);
		add(lblTotal);
		
		JLabel lblTotalEnEuros = new JLabel("total en euros");
		lblTotalEnEuros.setBounds(111, 257, 67, 14);
		add(lblTotalEnEuros);
		
		btnRetour = new JButton("Retour");
		btnRetour.setBounds(298, 253, 89, 23);
		add(btnRetour);
		BilanController bc= new BilanController(this);
	}

	public JButton getBtnRetour() {
		return btnRetour;
	}

	public void setBtnRetour(JButton btnRetour) {
		this.btnRetour = btnRetour;
	}
}
